package it.tukano.fun;

/**
 * A function
 * @author pgi
 * @param <PARAM> the type of the parameter
 * @param <RESULT> the type of the result
 */
public interface Function1<PARAM, RESULT> {

    /**
     * Applies this function to the parameter and returns the result
     * @param p the parameter
     * @return the result
     */
    RESULT apply(PARAM p);
}